Skip to main content

Last Update: 2025/3/26

SenseFlow Audio API

The SenseFlow Audio API allows you to convert text to audio and audio back to text .

Endpoints

Text to Audio

POST https://platform.llmprovider.ai/v1/agent/text-to-audio

Convert text to speech audio.

Request Headers

HeaderValue
AuthorizationBearer YOUR_API_KEY
Content-Typeapplication/json

Request Body

ParameterTypeDescription
modelstringagent name
message_idstring(Optional) Message ID for content lookup
textstringText to convert (used if message_id not provided)
userstringEnd user identifier

Response Headers

HeaderValue
Content-Typeaudio/wav

Example Request

curl -X POST 'https://platform.llmprovider.ai/v1/agent/text-to-audio' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"text": "Hello, this is a test message",
"user": "abc-123"
}' \
--output audio.wav

Audio to Text

POST https://platform.llmprovider.ai/v1/agent/audio-to-text

Convert speech audio to text.

Request Headers

HeaderValue
AuthorizationBearer YOUR_API_KEY
Content-Typemultipart/form-data

Request Body

ParameterTypeDescription
modelstringagent name
filefileAudio file (mp3, mp4, mpeg, mpga, m4a, wav, webm). file maxsize <= 20M
userstringEnd user identifier

Response

FieldTypeDescription
textstringTranscribed text

Example Request

curl -X POST 'https://platform.llmprovider.ai/v1/agent/audio-to-text' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--form '[email protected]' \
--form 'user=abc-123'

Example Response

{
"text": "Hello, this is the transcribed text."
}